import request from '@/utils/request'

// 查询设备shell执行记录列表
export function listPlatformDeviceShellRecord(query) {
  return request({
    url: '/genius/platform-device-shell-record/list',
    method: 'get',
    params: query
  })
}

// 查询设备shell执行记录详细
export function getPlatformDeviceShellRecord(id) {
  return request({
    url: '/genius/platform-device-shell-record/' + id,
    method: 'get'
  })
}

// 新增设备shell执行记录
export function addPlatformDeviceShellRecord(data) {
  return request({
    url: '/genius/platform-device-shell-record',
    method: 'post',
    data: data
  })
}

// 修改设备shell执行记录
export function updatePlatformDeviceShellRecord(data) {
  return request({
    url: '/genius/platform-device-shell-record',
    method: 'put',
    data: data
  })
}

// 删除设备shell执行记录
export function delPlatformDeviceShellRecord(id) {
  return request({
    url: '/genius/platform-device-shell-record/' + id,
    method: 'delete'
  })
}

// 逻辑删除设备shell执行记录
export function removedPlatformDeviceShellRecord(id) {
  return request({
    url: '/genius/platform-device-shell-record/' + id,
    method: 'delete'
  })
}
